package com.system.connect.springboot_flowers.controller;

import com.system.connect.springboot_flowers.dto.FeedbackDTO;
import com.system.connect.springboot_flowers.service.FeedbackService;
import com.system.connect.springboot_flowers.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/feedback")
public class FeedbackController {
    
    @Autowired
    private FeedbackService feedbackService;
    
    @PostMapping("/submit")
    public R submitFeedback(@RequestBody FeedbackDTO feedbackDTO) {
        return feedbackService.submitFeedback(feedbackDTO);
    }

} 